package service

import (
	"tesou.io/platform/poem-parent/poem-api/common/base"
	"tesou.io/platform/poem-parent/poem-core/common/base/service/mysql"
)

/**
 * 诗句
 * @author fog
 * @date 2019/10/14
 */
type PhraseService struct {
	mysql.BaseService
}

func (this *PhraseService) Updada(yi string , zhu string ,poemid int64)  {

	sql := "update `t_phrase` set Yi=?,Zhu=? where PoemId=?"
	_, err := mysql.GetEngine().Exec(sql, yi,zhu, poemid)
	if err != nil {
		base.Log.Info("Updada:", err)
	}
}